package com.sq.partner.manager.mybatis.model;

import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.Date;

import com.sq.partner.manager.util.DateUtil;

/**
 * 激活卡出库查询结果model
 * SQ
 *
 */
public class OutboundCardApply {
    private String cardDefineId;    //卡定义ID
    private String appId;           //申请卡单ID
    private String cardNo;          //卡号
    private String cardPw;          //卡单密码
    private String deptNo;          //当前机构
    private String deptName;
    private String operatorNo;      //业务员
    private String agentNo;         //代理人
    private BigDecimal discount;    //手续费
    private String status;          //状态
    private String composeId;       //产品简称码
    private BigDecimal totPremamt;  //保费
    private String totPremamtStr;
    private BigDecimal premRate;    //手续费比例
    private Date appDate;           //激活时间
    private Date effDate;           //起保时间
    private String agentProtocolno; //代理协议
    private String lockStatus;      //锁状态
    private Date sendTime;          //下发时间
    private String docId;           //单证类型
    private String chandle;         //领用人
    private String preFee;          //是否预付费
    private String payMrk;          //是否已缴费
    private Date disableDate;       //失效日期
    private String disableDateStr;
    private String receiveDepno;     //接收机构
    private String name;             //卡名称
    private String planNo;           //方案号
    private String planName;           //方案名称
    private String pricelessType;    //卡类型
    private String minNo;
    private String maxNo;
    private String count;
    private String prodCode;//产品代码
    private String typeCode;//险别
    public String getCardDefineId() {
        return cardDefineId;
    }
    public void setCardDefineId(String cardDefineId) {
        this.cardDefineId = cardDefineId;
    }
    public String getAppId() {
        return appId;
    }
    public void setAppId(String appId) {
        this.appId = appId;
    }
    public String getCardNo() {
        return cardNo;
    }
    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }
    public String getCardPw() {
        return cardPw;
    }
    public void setCardPw(String cardPw) {
        this.cardPw = cardPw;
    }
    public String getDeptNo() {
        return deptNo;
    }
    public void setDeptNo(String deptNo) {
        this.deptNo = deptNo;
    }
    public String getDeptName() {
        return deptName;
    }
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
    public String getOperatorNo() {
        return operatorNo;
    }
    public void setOperatorNo(String operatorNo) {
        this.operatorNo = operatorNo;
    }
    public String getAgentNo() {
        return agentNo;
    }
    public void setAgentNo(String agentNo) {
        this.agentNo = agentNo;
    }
    public BigDecimal getDiscount() {
        return discount;
    }
    public void setDiscount(BigDecimal discount) {
        this.discount = discount;
    }
    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getComposeId() {
        return composeId;
    }
    public void setComposeId(String composeId) {
        this.composeId = composeId;
    }
    public BigDecimal getTotPremamt() {
        return totPremamt;
    }
    public void setTotPremamt(BigDecimal totPremamt) {
        DecimalFormat decimalFormat = new DecimalFormat("#.00");
        if (totPremamt != null) {
            this.totPremamt = new BigDecimal(decimalFormat.format(totPremamt));
            this.totPremamtStr = this.totPremamt.toString();
        } else {
            this.totPremamt = totPremamt;
            this.totPremamtStr = "";
        }
    }
    public String getTotPremamtStr() {
        return totPremamtStr;
    }
    public BigDecimal getPremRate() {
        return premRate;
    }
    public void setPremRate(BigDecimal premRate) {
        DecimalFormat decimalFormat = new DecimalFormat("#.00");
        if (premRate != null) {
            this.premRate = new BigDecimal(decimalFormat.format(premRate));
        } else {
            this.premRate = premRate;
        }
    }
    public Date getAppDate() {
        return appDate;
    }
    public void setAppDate(Date appDate) {
        this.appDate = appDate;
    }
    public Date getEffDate() {
        return effDate;
    }
    public void setEffDate(Date effDate) {
        this.effDate = effDate;
    }
    public String getAgentProtocolno() {
        return agentProtocolno;
    }
    public void setAgentProtocolno(String agentProtocolno) {
        this.agentProtocolno = agentProtocolno;
    }
    public String getLockStatus() {
        return lockStatus;
    }
    public void setLockStatus(String lockStatus) {
        this.lockStatus = lockStatus;
    }
    public Date getSendTime() {
        return sendTime;
    }
    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }
    public String getDocId() {
        return docId;
    }
    public void setDocId(String docId) {
        this.docId = docId;
    }
    public String getChandle() {
        return chandle;
    }
    public void setChandle(String chandle) {
        this.chandle = chandle;
    }
    public String getPreFee() {
        return preFee;
    }
    public void setPreFee(String preFee) {
        this.preFee = preFee;
    }
    public String getPayMrk() {
        return payMrk;
    }
    public void setPayMrk(String payMrk) {
        this.payMrk = payMrk;
    }
    public Date getDisableDate() {
        return disableDate;
    }
    public String getDisableDateStr() {
        return disableDateStr;
    }
    public void setDisableDate(Date disableDate) throws Exception {
        this.disableDate = disableDate;
        if(disableDate != null){
            this.disableDateStr=DateUtil.format(disableDate,"yyyy-MM-dd");
        }
    }
    public String getReceiveDepno() {
        return receiveDepno;
    }
    public void setReceiveDepno(String receiveDepno) {
        this.receiveDepno = receiveDepno;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getPlanNo() {
        return planNo;
    }
    public void setPlanNo(String planNo) {
        this.planNo = planNo;
    }
    public String getPlanName() {
        return planName;
    }
    public void setPlanName(String planName) {
        this.planName = planName;
    }
    public String getPricelessType() {
        return pricelessType;
    }
    public void setPricelessType(String pricelessType) {
        this.pricelessType = pricelessType;
    }
    public String getMinNo() {
        return minNo;
    }
    public void setMinNo(String minNo) {
        this.minNo = minNo;
    }
    public String getMaxNo() {
        return maxNo;
    }
    public void setMaxNo(String maxNo) {
        this.maxNo = maxNo;
    }
    public String getCount() {
        return count;
    }
    public void setCount(String count) {
        this.count = count;
    }
    public String getProdCode() {
        return prodCode;
    }
    public void setProdCode(String prodCode) {
        this.prodCode = prodCode;
    }
    public String getTypeCode() {
        return typeCode;
    }
    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }
}
